package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @Author:Max
 * @Date: 2024/8/9 19:00
 * @Description
 **/
@Data
public class LoginFrom implements Serializable {
    @NotBlank(message = "账号不能为空")
    @Pattern(regexp = "^\\w{8,}$",message = "账号长度为8位以上")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^\\w{6,}$",message = "密码必须为数字和字母不能小于6位")
    private String password;
}
